package nix.anim.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import nix.anim.common.pojo.NixResult;
import nix.anim.service.RightService;

/**
 * 权限管理Controller
 */
@Controller
public class RightController {

	@Autowired
	private RightService rightService;
	
	@RequestMapping(value="/api/right/list", method=RequestMethod.GET)
	@ResponseBody
	public NixResult getRightList() {
		// 调用服务
		NixResult result = rightService.getRightList();
		return result;
	}
}
